package com.ll.beautymall.api;

/**
 * Created by Administrator on 2016/10/20.
 * 只是首页的，没有涉及到跳转.--->allbuy
 */
public class UrlConfig {
    //头部搜索跟导航条
    //http://api.yuike.com/gmall/api/1.0/home/floor_list.php
    //参数:?mid=457465&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311

    //首页轮播
    //http://api.yuike.com/gmall/api/1.0/home/banner_list.php?mid=457465&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311&cursor=0&count=40

    //中部，可截取action中的某一段属性? model_list
    //http://api.yuike.com/gmall/api/1.0/home/model_list.php?mid=457465&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311&cursor=0&count=40

    //http://api.yuike.com/gmall/api/1.0/allbuy/list.php
    // ?mid=457465&type=dress&category_ids=4796%2C4797%2C4805%2C4838%2C4839%2C4840%2C4841%2C4843
    // &sort=default&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311&
    // cursor=0&count=40


    //品牌：
//    http://api.yuike.com/gmall/api/1.0/allbuy/brand_list.php
    // ?mid=457465&type=dress&cid=4798&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311
    public static class Url {
        public static final String BASE_URL = "http://api.yuike.com/gmall/api/1.0/";
        public static final String BASE_VAPI_URL = "http://vapi.yuike.com/1.0/";
        public static final String HOME_NAV_URL = UrlPartValue.URLPART_VALUE1 + "/" + UrlPart.URL_HOME_NAV + "?mid=457465&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311";
        public static final String HOME_BANNER_URL = UrlPartValue.URLPART_VALUE1 + "/" + UrlPart.URL_HOME_BANNER;
        public static final String HOME_MODEL_URL = UrlPartValue.URLPART_VALUE1 + "/" + UrlPart.URL_HOME_MODEL;
        public static final String HOME_ALLBUY_URL = UrlPartValue.URLPART_VALUE2 + "/"
                + UrlPart.URL_HOME_ALLBUY;
        public static final String HOME_CATEGORY_URL = UrlPartValue.URLPART_VALUE2 + "/"
                + UrlPart.URL_HOME_CATEGORY;
        public static final String HOME_CATEGORY_BRAND_URL = UrlPartValue.URLPART_VALUE2 + "/"
                + UrlPart.URL_HOME_CATEGORY_BRAND;
        public static final String HOME_ZERO_URL = UrlPartValue.URLPART_VALUE3 + "/"
                + UrlPart.URL_HOME_OBJECT_PRODUCTS;

        public static final String HOME_ZERO_HEADER_URL = UrlPartValue.URLPART_VALUE4 + "/"
                + UrlPart.URL_HOME_ZERO_HEADER;
        public static final String QUALITY_URL = UrlPartValue.URLPART_VALUE3 + "/"
                + UrlPart.URL_QUALITY;
        public static final String NINE_HEADER_URL = UrlPartValue.URLPART_VALUE5 + "/"
                + UrlPart.URL_HOME_CATEGORY + "?mid=457465&yk_pid=3&yk_appid=1&yk_cc=m360&yk_cvc=311";
        public static final String NINE_ALLBUY_URL = UrlPartValue.URLPART_VALUE5 + "/"
                + UrlPart.URL_HOME_ALLBUY;
    }

    public static class UrlPart {
        public static final String URL_HOME_NAV = "floor_list.php";
        public static final String URL_HOME_BANNER = "banner_list.php";
        public static final String URL_HOME_MODEL = "model_list.php";
        public static final String URL_HOME_ALLBUY = "list.php";
        public static final String URL_HOME_CATEGORY = "category_list.php";
        public static final String URL_HOME_CATEGORY_BRAND = "brand_list.php";
        public static final String URL_HOME_OBJECT_PRODUCTS = "object_products.php";
        public static final String URL_HOME_ZERO_HEADER = "detail.php";
        public static final String URL_QUALITY = "quality.php";
    }

    public static class UrlPartValue {
        public static final String URLPART_VALUE1 = "home";
        public static final String URLPART_VALUE2 = "allbuy";
        public static final String URLPART_VALUE3 = "product";
        public static final String URLPART_VALUE4 = "activity";
        public static final String URLPART_VALUE5 = "ninenine";
    }

    public static class Key {
        //是否是第一级
        public static final String ISONE = "isOne";
        public static final String MID = "mid";
        public static final String TYPE = "type";
        public static final String CATEGORY_IDS = "category_ids";
        public static final String CHANNEL_ID = "channel_id";
        public static final String SORT = "sort";
        public static final String YK_PID = "yk_pid";
        public static final String YK_APPID = "yk_appid";
        public static final String YK_CC = "yk_cc";
        public static final String YK_CVC = "yk_cvc";
        public static final String CURSOR = "cursor";
        public static final String COUNT = "count";
        public static final String OBJECT_ID = "object_id";
        public static final String ACTIVITY_ID = "activity_id";
        public static final String SID = "sid";
    }

    public static class Value {
        public static final String VALIUE_MID = "457465";//--->可变的
        public static final String VALIUE_QUALITY_TYPE = "choice";//--->可变的
        public static final String VALIUE_SORT_DEFAULT = "default";
        public static final String VALIUE_SORT_SALES = "sales";
        public static final String VALIUE_SORT_TIME = "time";
        public static final String VALIUE_YK_PID = "3";
        public static final String VALIUE_YK_APPID = "1";
        public static final String VALIUE_YK_CC = "m360";
        public static final String VALIUE_YK_CVC = "311";
        public static final String VALIUE_CURSOR = "0";
        public static final String VALIUE_COUNT = "40";

        public static final String VALIUE_SID = "32614aef25b2a0e09b6ef3de86ac5f0e";
    }
}
